const path = require('path');

const bsname = path.basename('E:/HBuilderProjects/nodejs/01初始nodejs与内置模块/files/成绩.txt', '.txt');
console.log(bsname);

